package com.tzr.web;

import com.tzr.service.UserDaoService;
import com.tzr.service.UserDaoServiceImpl;

import javax.net.ssl.HttpsURLConnection;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import java.io.IOException;
@WebServlet("/dianzan")
public class DianZanServlet extends HttpServlet {
    @Override
    public void service(ServletRequest req, ServletResponse resp) throws ServletException, IOException {

        UserDaoService userDaoService=new UserDaoServiceImpl();
        boolean u= userDaoService.DianZan();
        resp.getWriter().print(u);
    }
}
